package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;

import java.util.List;

public interface IEmployeeService {
    void saveOrUpdate(Employee entity);
    void changeState(Long id);
    Employee get(Long id);
    List<Employee> selectAll();

    PageResult queryForList(QueryObject qo);

    Long[] selectRoleById(Long id);

    /**
     * 检查用户名是否存在
     * @param username
     */
    void checkUsername(String username);


    // Employee selectInfoByUsername(String username);
}
